package cn.school.mybatis.pojo;

import java.io.Serializable;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Grade implements Serializable {

	private long id;
	private String gname;


	@Override
	public String toString() {
		return "年级 [年级id=" + id + ", 年级名称=" + gname + "]\n";
	}

	public Grade(String gname) {
		super();
		this.gname = gname;
	}



}
